#pragma once
#include "Control.h"
class Progress : public Control
{
public:
	Progress() {}
	~Progress() {}
	virtual tstring GetClassName() { return _T("Progress"); }
	void SetMinValue(double minValue);
	void SetMaxValue(double maxValue);
	void SetValue(double val);
	double GetValue();
	double GetMaxValue() { return max_; }
	double GetMinValue() { return min_; }
	bool IsOrientDirHorizen() { return bHorizen_; }
	void Draw();
	void SetHorizenDirection(bool bDir);
	virtual bool SetAttribute(const char* attrName, const char* attrVal);
private:
	double min_{ 0.0 };
	double max_{100.};
	double v_{50};
	vec3 clrBK;
	bool bHorizen_{true};
};